import request from '@/utils/request'

// 查询订单电围列表
export function listOrderElectricFence(query) {
  return request({
    url: '/ys/orderElectricFence/list',
    method: 'get',
    params: query
  })
}

// 查询订单电围详细
export function getOrderElectricFence(id) {
  return request({
    url: '/ys/orderElectricFence/' + id,
    method: 'get'
  })
}

// 新增订单电围
export function addOrderElectricFence(data) {
  return request({
    url: '/ys/orderElectricFence',
    method: 'post',
    data: data
  })
}

// 修改订单电围
export function updateOrderElectricFence(data) {
  return request({
    url: '/ys/orderElectricFence',
    method: 'put',
    data: data
  })
}

// 删除订单电围
export function delOrderElectricFence(id) {
  return request({
    url: '/ys/orderElectricFence/' + id,
    method: 'delete'
  })
}
